<?php
/**
 * Created by PhpStorm.
 * User: root
 * Date: 10/9/14
 * Time: 1:28 PM
 */

namespace Common\Models\Users;
use Phalcon\Mvc\Model\Validator\Uniqueness;
use Phalcon\Mvc\Model;

class PermissionResourceAction extends Model
{
    /**
     *
     * @var integer
     */
    protected $resource_id;

    /**
     *
     * @var string
     */
    protected $action_id;

    /**
     * @param string $action_id
     */
    public function setActionId($action_id)
    {
        $this->action_id = $action_id;
    }

    /**
     * @return string
     */
    public function getActionId()
    {
        return $this->action_id;
    }

    /**
     * @param int $resource_id
     */
    public function setResourceId($resource_id)
    {
        $this->resource_id = $resource_id;
    }

    /**
     * @return int
     */
    public function getResourceId()
    {
        return $this->resource_id;
    }

    public function getSource()
    {
        return 'permission_resource_action';
    }

    public function validation()
    {

    }

    public function initialize()
    {

    }

} 